package com.todo.member.infrastructure.mapper;

import com.todo.member.infrastructure.entity.po.MemberTaskPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author azhebuxing
 * @date 2025/1/21 16:22
 * @description
 */
@Mapper
public interface MemberTaskMapper {
    int insertMemberTaskPO(MemberTaskPO memberTaskPO);

    int updateMemberTaskPOById(MemberTaskPO memberTaskPO);

    Boolean removeMemberTaskPOById(@Param("id") Long id);

    MemberTaskPO queryMemberTaskPOById(@Param("id") Long id);

    MemberTaskPO queryMemberTaskPOByTitle(@Param("title") String title);

    Boolean updateMemberTaskStatusById(@Param("id") Long id,@Param("oldStatus")  int oldStatus,@Param("newStatus")  int newStatus);
}
